package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ReadStringDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream file = new FileInputStream("note.txt");
        InputStreamReader isr=new InputStreamReader(file,StandardCharsets.UTF_8);
        BufferedReader in =new BufferedReader(isr);
        String line;
        while((line=in.readLine())!=null){
            System.out.println(line);
        }
        in.close();



    }
}
